package szcg.framework.library.config.mongodb;

import org.apache.ibatis.mapping.Environment;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactoryBuilder;
import org.apache.ibatis.transaction.jdbc.JdbcTransactionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import szcg.framework.library.config.db.CustomDruidDataSource;
import szcg.framework.library.mapper.task.TaskMapper;
import szcg.framework.library.mapper.user.UserMapper;

//@Configuration
//public class MongodbConfig {
//    private static final Logger logger = LoggerFactory.getLogger(MongodbConfig.class);

//    private static final String CONNECTION_STRING = "mongodb://172.26.2.95:27017";
//    private static final String DATABASE_NAME = "testdb";
//    private static final String COLLECTION_NAME = "users";
//
//    @Bean(name = {"MongoDatabase_Main"})
//    public MongoDatabase mongoDatabase() {
//        MongoClient mongoClient = MongoClients.create(CONNECTION_STRING);
//        // 获取数据库
//        return mongoClient.getDatabase(DATABASE_NAME);
//    }


//}
